package com.minsheng.epidemic_rep.config;

import org.apache.ibatis.session.Configuration;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.PropertySource;

@org.springframework.context.annotation.Configuration
@PropertySource(value = {"classpath:application.yml"}, ignoreResourceNotFound = true,encoding = "utf-8")
@MapperScan(basePackages = "com.minsheng.epidemic_rep.dao")
public class MyBatisConfig {

//    @Bean
//    public ConfigurationCustomizer configurationCustomizer(){
//        return new ConfigurationCustomizer(){
//
//            //开启驼峰命名法规则
//            @Override
//            public void customize(Configuration configuration) {
//                configuration.setMapUnderscoreToCamelCase(true);
//            }
//        };
//    }
}
